import request from "../utils/request";

// 班级列表
export const classList = data => {
    return request({
        method: 'POST',
        url:'/class/getClassPage',
        data
    })
}
//查看班级-不分页分页
export const classPage = () => {
    return request({
        method: 'GET',
        url:'/class/getClassList'
    })
}
//新增班级
export const addClass = data => {
    return request({
        method: 'POST',
        url:'/class/add',
        data
    })
}
//编辑班级
export const editClass = data => {
    return request({
        method: 'POST',
        url:'/class/edit',
        data
    })
}
//删除班级
export const delClass = id => {
    return request({
        method: 'GET',
        url:'/class/deleteById?id=' + id
    })
}
//查看班级下学生提交成绩
export const classDownStudent = data => {
    return request({
        method: 'POST',
        url:'/class/getStudentByClassId',
        data
    })
}
